package com.bsoft.gol.hcs.enumcase;

/**
 * @author tongtp
 * @version v0.1
 * @package enumcase
 * @className FollowTypeEnum
 * @description 随访大类枚举类
 * @create 2022-05-27 20:59
 **/
public enum FollowTypeEnum {

	FUS_SPECIALIST("1", "专病随访"),
	FUS_AFTER("2", "院后随访"),
	FUS_SATISFACTION("3", "满意度随访");

	private final String type;

	private final String name;

	FollowTypeEnum(String type, String name) {
		this.type = type;
		this.name = name;
	}

	public static FollowTypeEnum getEnumByKey(String type) {
		for (FollowTypeEnum temp : FollowTypeEnum.values()) {
			if (temp.getType().equals(type)) {
				return temp;
			}
		}
		return null;
	}

	public String getType() {
		return type;
	}

	public String getName() {
		return name;
	}
}
